﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CtrList.ascx.cs" Inherits="ZWZ.Web.WebAdmin.UCtrs.CtrList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="MicroPager" %>
<div id="<%=ClientID %>" class="list_container">
    <asp:Literal ID="LtrListHeader" runat="server"></asp:Literal>
    <asp:Panel ID="List_DataContainer" CssClass="list_datacontainer" runat="server">
        <table class="list" width="100%">
            <asp:Repeater ID="RptListData" runat="server" OnItemDataBound="RptListData_ItemDataBound">
                <ItemTemplate>
                    <tr>
                        <%if (ShowIndexColumn)
                          { %>
                        <td style="width: <%=IndexColumnWidth%>px;">
                            <%#Container.ItemIndex+1 %>
                        </td>
                        <%} %>
                        <asp:Literal ID="LtrListData" runat="server"></asp:Literal>
                        <td style="width: <%=OperateColumnWidth%>px;">
                            <asp:ImageButton ID="BtnUpdate" ImageUrl="/Res/Icons/操作类图标/修改.png" runat="server" />
                            <asp:ImageButton ID="BtnDelete" CommandName="Delete" ImageUrl="/Res/Icons/操作类图标/删除.png"
                                OnClientClick="return confirm('确认要删除吗？');" runat="server" />
                            <asp:LinkButton ID="BtnCustom" runat="server">Button</asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <tr class="ood">
                        <%if (ShowIndexColumn)
                          { %>
                        <td style="width: <%=IndexColumnWidth%>px;">
                            <%#Container.ItemIndex+1 %>
                        </td>
                        <%} %>
                        <asp:Literal ID="LtrListData" runat="server"></asp:Literal>
                        <td style="width: <%=OperateColumnWidth%>px;">
                            <asp:ImageButton ID="BtnUpdate" CommandName="Update" ImageUrl="/Res/Icons/操作类图标/修改.png"
                                runat="server" />
                            <asp:ImageButton ID="BtnDelete" CommandName="Delete" ImageUrl="/Res/Icons/操作类图标/删除.png"
                                runat="server" />
                            <asp:LinkButton ID="BtnCustom" runat="server">Button</asp:LinkButton>
                        </td>
                    </tr>
                </AlternatingItemTemplate>
            </asp:Repeater>
            <asp:Literal ID="LtrEmptyRow" runat="server"></asp:Literal>
        </table>
    </asp:Panel>
    <asp:Literal ID="LtrSummaryRow" runat="server"></asp:Literal>
    <table class="list" width="100%">
        <tr>
            <td class="list-footer" colspan="30" style="text-align: left; padding-left: 5px;">
                <asp:Label Style="float: right;" ID="LabSum" runat="server" Text=""></asp:Label>
                <MicroPager:AspNetPager ID="MPager" runat="server" AlwaysShow="true" NextPageText="下页"
                    PrevPageText="上页" FirstPageText="首页" LastPageText="尾页" ShowPageIndexBox="Never">
                </MicroPager:AspNetPager>
            </td>
        </tr>
    </table>
</div>
